package com.wg.web_app.domin;

import com.wg.web_app.dao.table.TableUser;

public class TableUserBuilder {
	private Integer userId;
	private String loginName;
	private String loginPass;
	private String userName;
	
	public TableUser build() {
		TableUser user = new TableUser();
		user.setId(userId);
		user.setLoginName(loginName);
		user.setLoginPass(loginPass);
		user.setUserName(userName);
		return user;
	}
	public TableUserBuilder id(int id) {
		this.userId = id;
		return this;
	}

	public TableUserBuilder loginName(String loginName) {
		this.loginName = loginName;
		return this;
	}

	public TableUserBuilder loginPass(String loginPass) {
		this.loginPass = loginPass;
		return this;
	}

	public TableUserBuilder userName(String userName) {
		this.userName = userName;
		return this;
	}
}
